/**
 * jims
 */
package com.jims.master.modules.patient.myRecord.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.patient.myRecord.dao.CaseClinicCaseDao;
import com.jims.master.modules.patient.myRecord.entity.CaseClinicCase;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * his门诊病历同步Service
 * @author chent
 * @version 2017-09-22
 */
@Service
@Transactional(readOnly = true)
public class CaseClinicCaseService extends CrudService<CaseClinicCaseDao, CaseClinicCase> {

	@Override
    public CaseClinicCase get(String id) {
		return super.get(id);
	}
	
	@Override
    public List<CaseClinicCase> findList(CaseClinicCase caseClinicCase) {
		return super.findList(caseClinicCase);
	}
	
	@Override
    public Page<CaseClinicCase> findPage(Page<CaseClinicCase> page, CaseClinicCase caseClinicCase) {
		return super.findPage(page, caseClinicCase);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int save(CaseClinicCase caseClinicCase) {
		return super.save(caseClinicCase);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int delete(CaseClinicCase caseClinicCase) {
		return super.delete(caseClinicCase);
	}

	public CaseClinicCase getCaseClinicCase(CaseClinicCase caseClinicCase){
		return dao.getCaseClinicCase(caseClinicCase);
	}
	
}